package com.casstime.ec.cloud.discount.dao.amount;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.casstime.ec.cloud.dao.jpa.mybatis.Mapper;
import com.casstime.ec.cloud.values.amountPromotion.AmountPromotionCompany;
import com.casstime.ec.cloud.values.amountPromotion.AmountPromotionFlowing;
import com.casstime.ec.cloud.values.amountPromotion.AmountPromotionFlowingRequest;
/**
 * 
 * ClassName: AmountPromotionFlowingMapper 
 * Function: (活动流水实体类)
 * Reason: ADD REASON(可选).
 *  
 * @author hongcheng.wu  
 * 2018年3月22日 下午2:53:30
 * @version   
 * @since JDK 1.8
 */
@SuppressWarnings("rawtypes")
public interface AmountPromotionFlowingMapper extends Mapper {
	
	int insertAmountPromotionFlowing(@Param("flows") List<AmountPromotionFlowing> flows);
	
	List<AmountPromotionFlowing> listAmountPromotionFlowing(@Param("productStoreId") String productStoreId,
			@Param("request") AmountPromotionFlowingRequest request);
	
	List<AmountPromotionCompany> listAmountPromotionCompanyBystoreId(@Param("productStoreId") String productStoreId);
	
	List<AmountPromotionFlowing> getAmountPromotionFlowingByOrderId(@Param("promotionId") String promotionId, 
			@Param("orderId") String orderId);
	
}
